package cn.beatuty.makeup.module.system.controller.admin.orders;

import cn.beatuty.makeup.framework.common.pojo.CommonResult;
import cn.beatuty.makeup.module.system.controller.admin.orders.vo.PlayVo;
import cn.beatuty.makeup.module.system.service.orders.OrdersService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Tag(name = "管理后台 - 支付")
@RestController
@RequestMapping("/system/play")
@Validated
public class PlayController {


    @Resource
    private OrdersService ordersService;


    @PostMapping("/order")
    public CommonResult<String> playOrder(@RequestBody PlayVo playVo) {
        ordersService.playOrder(playVo);
        return CommonResult.success("支付成功");
    }
}
